<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>新闻管理页</title>
    <link rel="stylesheet" th:href="@{/statics/css/common.css}" type="text/css">
</head>
<body>
<a th:href="@{/to/addNews}">添加新闻</a>
<a th:href="@{/to/admin}">回到管理员首页</a>
<ul th:each="news : ${newsList}">
    <li>
        <a th:href="@{'/checkNews/'+${news.id}}" th:text="${news.title}"></a>
        <a th:href="@{'/newsDelete/'+${news.id}}">删除</a>
    </li>
</ul>
</body>
</html>